<template>
    <view class="page">
        <view class="report Han">
        	<view class="reportItem devideLine" v-for="(repo,repoIndex) in testData" :key="repoIndex" @tap="submitItem(repo)">
        		<view class="mdTitle">
        			{{repo.type}}
        		</view>
        		<!-- <view class="md6Text intro" style="padding-right: 30rpx;">
        			{{repo.intro}}
        		</view> -->
        		<view class="arrow">
        			<image src="../../../static/imgs/detail/arrow.png" mode="" ></image>
        		</view>
        		
        	</view>
        </view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                testData: [{
                        type: '散播违法/敏感言论',
                        intro: '招聘者发布的信息包含违法、政治敏感内容'
                    },
                    {
                        type: '人身攻击',
                        intro: '招聘者存在辱骂、骚扰等语言或肢体上的不当行为'
                    },
                    {
                        type: '色情骚扰',
                        intro: '招聘者发布的信息包含色情低俗内容或存在性骚扰行为'
                    },
                    {
                        type: '职位虚假',
                        intro: '招聘者发布的职位内容与实际沟通职位不符，例如：薪资、工作内容、工作地点不符'
                    },
                    {
                        type: '招聘者身份虚假',
                        intro: '招聘者不是其认证公司的员工'
                    },
                    {
                        type: '违法/欺诈行为',
                        intro: '招聘者发布的职位内容与实际沟通职位不符，例如：薪资、工作内容、工作地点不符'
                    },
                    {
                        type: '收取求职者费用',
                        intro: '招聘者以各种名义或变相收取求职者费用，例如：中介费、培训费'
                    },
                    {
                        type: '发布广告和招商信息',
                        intro: '招聘者变相发布广告或寻求投资、合作'
                    },
                    {
                        type: '其他违规行为',
                        intro: '招聘者或公司存在以上例举类型之外的违规行为'
                    },
                ],
                
                job_id: 0,
            }

        },
        onLoad(options) {
            this.job_id = options.job_id || 1;
        },
        methods: {
            submitItem(item){
                if(!this.job_id) {
                    return this._toast('未选择举报对象');
                }
            	uni.navigateTo({
            		url:'/pages/views/detail/reportSubmit?job_id='+this.job_id+'&type='+item.type+'&desc=' + item.intro
            	});
            }
        },
    }
</script>

<style scoped lang="less">
    .reportItem{
    	font-weight: bold;
    	padding: 36upx 32upx;
    	position: relative;
    	.intro{
    		color: #3465B1;
    		padding-top: 20upx;
    	}
    	
    	.arrow{
    		width: 48upx;
    		height: 48upx;
    		border: ;
    		position: absolute;
    		top: 50%;
    		right: 48upx;
    		transform: translateY(-50%);
    	
    		
    		image{
    			width: 100%;
    			height: 100%;
    		}
    	}
    }
</style>
